package com.wx.entity;

import com.wx.pojo.WxUser;

import javax.servlet.http.HttpServletRequest;

public class WxUserModel {
    private WxUser userModel;
    public WxUser getUserModel(HttpServletRequest request) {
        if (request.getSession().getAttribute("userModel")!=null){
            return (WxUser)request.getSession().getAttribute("userModel");
        }
        return new WxUser();
    }
}
